package com.test.pattern.state.after;

/**
 * @ClassName: Client
 * @description:
 * @author: Mr du
 * @create: 2024-03-12 22:47
 */
public class Client {

    public static void main(String[] args) {
        Context context = new Context();
        //设置电梯当前运行状态
        context.setLiftState(new RuningState());
        context.open();
        context.close();
        context.run();
        context.stop();
    }
}
